package com.cnunicom.modules.addressbook.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @Author: dingziyuan
 * @Date: 2019/7/14 14:28
 * @Description: 省市县关联
 */
@Data
@TableName("china")
public class ChinaEntity {
    /**
     * 主键
     */
    @TableId(value = "Id")
    private Integer id;
    /**
     * 姓名
     */
    @TableField(value = "Name")
    private String name;
    /**
     * 父id
     */
    @TableField(value = "Pid")
    private Integer pid;

    @TableField(exist = false)
    private List<ChinaEntity> children;
}
